package com.wzx.service;

import com.wzx.core.aop.annotaction.*;
import com.wzx.core.aop.invoke.JoinPoint;
import com.wzx.core.ioc.anootaction.Component;

@Aspect
@Component
public class TransferAspect2 {

    @Before("com.wzx.service.TransferService.transfer")
    public void s1(JoinPoint joinPoint) {
        System.out.println("before2 拦截！");
    }

    @After("com.wzx.service.TransferService.transfer")
    public void s2(JoinPoint joinPoint) {
        System.out.println("After2 拦截！");
    }

    @Running("com.wzx.service.TransferService.transfer")
    public void s4(JoinPoint joinPoint) {
        System.out.println("Running2 拦截！");
    }

    @Throwing("com.wzx.service.TransferService.transfer")
    public void s5(JoinPoint joinPoint) {
        System.out.println("Throwing2 拦截！");
    }
}
